<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/module/checkA.php");
include_once("../../../../config.php");
include_once("../controller/detail-list.php");
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
       <?php include ROOT_PATH_.'/controller/common/module/head.php'; ?>
    <?php include 'modules/head.php'; ?>
</head>

<body>

<div id="topbar">   <?php include ROOT_PATH_.'/controller/common/module/topbar.php'; ?></div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/module/sidebar.php'; ?>
        </div>


        <div id="content" class="layui-form">
            <h1> 提成列表 </h1>
            <div class="tips">
                <div>1.如果存在时间重叠的相同方案，系统默认使用结束时间最大的方案。</div>
            </div>


            <!-- 用$system_part .list_boxes来控制来到确认板块信息显示-->
            <div class="list-box">

                <a href="detail-add.php" class="layui-btn" >新增</a>

                <div class="list-boxes">



                    <?php

                    if ($detailnum == 0) {
                        echo "数据添加中";
                    }

                    ?>




                    <table class="layui-table">

                        <thead>
                        <tr>
                            <th>项目类型</th>
                            <th>介绍人</th>
                            <th>业务开发</th>

                            <th>项目负责</th>
                            <th>跟单</th>

                            <th>设计师</th>
                            <th>程序员</th>
                            <th>编辑</th>


                            <th>开始时间</th>
                            <th>结束时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>


                        <?php
                        for ($i = 0; $i < $detailnum; $i++) {
                            ?>
                            <tr id="item<?echo $detail[$i]['nid']?>" >
                                <td><?echo $detail[$i]['name']?></td>

                                <td><?echo $detail[$i]['agent']?></td>
                                <td><?echo $detail[$i]['sales']?></td>

                                <td><?echo $detail[$i]['respon']?></td>
                                <td><?echo $detail[$i]['service']?></td>

                                <td><?echo $detail[$i]['designer']?></td>
                                <td><?echo $detail[$i]['programer']?></td>
                                <td><?echo $detail[$i]['editor']?></td>


                                <td><?echo $detail[$i]['start_date']?></td>
                                <td><?echo $detail[$i]['end_date']?></td>
                                <td>
                                    <a href="detail-edit.php?nav-itemed=<?echo $system_part?>&nid=<? echo $detail[$i]['nid']?>" class="layui-btn layui-btn-primary layui-btn-small" >
                                        <i class="layui-icon">&#xe642;</i>
                                    </a>

                                    <a href="javascript:void(0)" onclick="delItem (<?php echo $detail[$i]['nid']?>)" class="delete layui-btn layui-btn-primary layui-btn-small" >删除 <i class="layui-icon">&#xe640;</i> </a>

                                </td>
                            </tr>
                            <?php

                        }
                        ?>


                        </tbody>
                    </table>






                </div>



                <div class="list-box-function"
                    <? if ($detailnum == 0) {
                        echo "style" . "='display:none'";
                    } ?>
                    >

                    <?php include 'page_numbers.php'; ?>

                </div>
            </div>


            <!--list-box end-->
        </div>

        <!--content端點01-->
    </div>
    <!--maincontent端點01-->
    <br class="clearfloat"/>
</div>
<!--container端點01-->
</div>







<!--删除box-->
<?php include '../modules/deletebar.php'; ?>
<!--删除box end-->

<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?> </body>
</html>
